<?php 

header('Content-Type: text/html; charset=utf-8');

# Load Clearbricks
require_once(dirname(__FILE__).'/clearbricks/_common.php');

# GamerCard
$__autoload['GamerCard'] = dirname(__FILE__).'/class.gamercard.php';

$GamerCard = new GamerCard('major nelson');

echo('<ul>'.
	'<li>GamerTag: '.$GamerCard->GamerTag.'</li>'.

	'<li>URL: <a href="'.$GamerCard->URL.'">'.$GamerCard->URL.'</a></li>'.

	'<li>Real GamerTag: '.$GamerCard->Real_GamerTag.'</li>'.

	'<li>Accounts Status: '.$GamerCard->AccountStatus.'</li>'.

	'<li>live.xbox.com profile URL: <a href="'.
		$GamerCard->Live_Xbox_Com_URL.'">'.
		$GamerCard->Live_Xbox_Com_URL.'</a></li>'.

	'<li>GamerScore: '.$GamerCard->GamerScore.'</li>'.

	'<li>Zone: '.$GamerCard->Zone.'</li>');

echo('<li>Games:<ul>');

foreach ($GamerCard->Games as $game)
{
	echo('<li>'.$game.'</li>'."\n");
}
echo('</ul></li>');

echo('<li>Games:<ul>');
foreach ($GamerCard->GamesWithImagesURL as $game => $img_url)
{
	echo('<li><img src="'.$img_url.'" alt="'.$game.'" />'.$game.'</li>'."\n");
}
echo('</ul></li>');

echo('</ul>');

?>